var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, a = arguments.length, c = a < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(t, e, o, n); else for (var i = t.length - 1; 0 <= i; i--) (r = t[i]) && (c = (a < 3 ? r(c) : 3 < a ? r(e, o, c) : r(e, o)) || c);
    return 3 < a && c && Object.defineProperty(e, o, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("GameConfig"), s = e("GameData"), c = e("DataManager"), l = e("DrawManager"), d = e("WebManager"), u = e("Global"), p = cc._decorator, h = p.ccclass, f = p.property, g = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.root = null, t;
    }
    return i(t, e), t.prototype.onLoad = function() {
        !r.GC.isVaild("hideReward") && u.G.isIOS && GA.isByteDance() ? !s.GD.isHideReward && u.G.launchOptions && "021001" == u.G.launchOptions.scene && (d.default.getInstance().sentLog("开始界面触发隐藏奖励"), 
        s.GD.isHideReward = 1, u.G.queue.push({
            name: "draw_reward",
            type: 2,
            data: l.default.getInstance().doDraw()
        }), c.default.getInstance().save(), this.root.destroy()) : this.root.destroy();
    }, t.prototype.onEnable = function() {
        !s.GD.isHideReward && 2 == u.G.playcount && this.root && (d.default.getInstance().sentLog("开始界面弹出隐藏奖励界面"), 
        this.root.active = !0);
    }, t.prototype.onClickClose = function() {
        d.default.getInstance().sentLog("开始界面关闭隐藏奖励界面"), this.root.destroy();
    }, t.prototype.start = function() {}, a([ f(cc.Node) ], t.prototype, "root", void 0), 
    a([ h ], t);
}(cc.Component);

n.default = g;